import 'package:json_annotation/json_annotation.dart';

part 'ecology_result_data.g.dart';

@JsonSerializable()
class EcologyResultData {
  @JsonKey(name: 'encodeKey')
  final String? encodeKey;

  @JsonKey(name: 'encodeType')
  final String? encodeType;

  @JsonKey(name: 'sceneCode')
  final String? sceneCode;

  @JsonKey(name: 'thirdUserIdentifier')
  final String? thirdUserIdentifier;

  @JsonKey(name: 'thirdUserType')
  final String? thirdUserType;

  @JsonKey(name: 'userOpenId')
  final String? userOpenId;

  @JsonKey(name: 'deviceOpenId')
  final String? deviceOpenId;

  factory EcologyResultData.fromJson(Map<String, dynamic> json) =>
      _$EcologyResultDataFromJson(json);

  Map<String, dynamic> toJson() => _$EcologyResultDataToJson(this);

  EcologyResultData({
    this.encodeKey,
    this.encodeType,
    this.sceneCode,
    this.thirdUserIdentifier,
    this.thirdUserType,
    this.userOpenId,
    this.deviceOpenId,
  });
}
